package com.itheima.test;

import com.itheima.pojo.User;

public class Demo {
    public static void main(String[] args) {

        User user = new User();
        user.setUsername("zhangsan");

        User user2 = new User();

        user2 = user;
        user2.setUsername("lisi");

        System.out.println(user.getUsername());

    }
}
